package com.ght.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;



/**
 * @description: test001 运行类
 * @author: haitao.gao
 * @create: 2018-08-21 21:32
 **/
@SpringBootApplication
@EnableDiscoveryClient  //自身接口被访问
@EnableFeignClients     //可以访问其他接口
@EnableHystrixDashboard //熔断器
@EnableCircuitBreaker
@MapperScan("com.ght.springboot.dao")
@ServletComponentScan //添加Durid监控页面
//@ImportResource(locations="classpath:/dubbo/*.xml")
public class Test001Application {

    public static void main(String[] args){

        SpringApplication.run(Test001Application.class, args);
    }



}
